package com.wans.guli.integration.sms;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@FeignClient(value = "sms", url = "https://gyytz.market.alicloudapi.com")
public interface SMSThirdAPIClient {

    @PostMapping(value = "/sms/smsSend")
    @ResponseBody
    String sendSms(@RequestParam Map<String, String> params, @RequestHeader("Authorization") String authorization);
}
